package com.day10.ex05;

public class AnimalDemo {
    public static void main(String[] args) {
        Cat c1=new Cat();
        c1.setName("加菲猫");
        c1.setAge(2);
        System.out.println(c1.getName()+","+c1.getAge());
        c1.catchMouse();
        Cat c2=new Cat("小花",6);
        System.out.println(c2.getName()+","+c2.getAge());
        c2.catchMouse();
    }
}
